package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * IOT系统-BMS升级记录
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_iot_bms_update")
@ApiModel(value = "XhIotBmsUpdate对象", description = "IOT系统-BMS升级记录")
public class XhIotBmsUpdate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联BMS信息ID")
    private Integer bmsId;

    @ApiModelProperty("物联网电池ID")
    private Integer batteryId;

    @ApiModelProperty("当前版本号")
    private Integer currentVersion;

    @ApiModelProperty("新版本号")
    private Integer newVersion;

    @ApiModelProperty("状态 1-待升级 2-升级中 3-升级成功 4-升级失败 5-升级超时 6-升级取消")
    private Integer status;

    @ApiModelProperty("计划升级时间")
    private Date planUpgradeTime;

    @ApiModelProperty("实际升级开始时间")
    private Date upgradeTime;

    @ApiModelProperty("升级失败远影 1-文件下载失败 2-软件安装失败 3-新版版本号相同 4-新版版本号较低 99-其它原因")
    private Integer failReason;

    @ApiModelProperty("升级结果反馈时间")
    private Date replyTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
